package com.fujica.invoicing.controller;

import com.fujica.invoicing.service.ISupplierService;
import com.fujica.invoicing.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName SupplierController
 * @Description TODO
 * @Author admin
 * @Date 2020/8/17 14:43
 * @Version 1.0
 **/

@RestController
@RequestMapping("invoicing/supplier")
@Api(tags = "供应商")
public class SupplierController {

    @Autowired
    private ISupplierService iSupplierService;

    @GetMapping
    @ApiOperation("获取供应商列表")
    public Result list() {
        return iSupplierService.list();
    }
}
